package hashSetDemo;

import java.util.HashSet;
import java.util.Set;

public class Demo1 {
	public static void main(String args[]){
		Set foods = new HashSet();
		foods.add(new Node(3,3));
		foods.add(new Node(3,5));
		foods.add(new Node(3,6));
		foods.add(new Node(3,7));
		foods.add(new Node(6,3));
		foods.add(new Node(7,3));
		foods.add(new Node(2,3));
		System.out.println(foods);
		
		for(int i=0;i<20;i++){
			for(int j=0;j<20;j++){
				if(i==0 || i==19){
					System.out.print("-");
				}
				else if(j==0 || j==19){
					System.out.print("|");
				}
				else if(foods.contains(new Node(i,j))){
					System.out.print("0");
				}
				else{
					System.out.print(" ");
				}
			}
			System.out.println();
		}

	}
}
